package com.example.jdcompetition.Entity;


/**
 * @author henrydai
 * @date 2021/6/16 20:35
 */
public enum CodeAndMsg {
    SUCCESS(100, "SUCCESS"),
    COLLECTEXCEPTION1(201,"处理揽收文件错误"),
    COLLECTEXCEPTION2(202,"计算揽收时间错误"),
    TRANSITEXCEPTION1(301,"处理中转文件错误"),
    TRANSITEXCEPTION2(302,"计算中转时间错误"),
    DELIVEREXCEPTION1(401,"处理派送文件错误"),
    DELIVEREXCEPTION2(402,"计算派送时间错误"),
    UNKNOWNEXCEPTION(500, "其他错误");

    protected int code;
    protected String msg;

    CodeAndMsg(int code, String msg){
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }
}
